public class HomeWork1 {
    public static void main(String[] args) {
        int[] array = new int[7];
        array[0] = 90;
        array[1] = 91;
        array[2] = 92;
        array[3] = 93;
        array[4] = 94;
        array[5] = 95;
        array[6] = 96;
        int max = array[0], min = array[6];
        for (int i = 0; i < array.length; i++) {
            if (max < array[i]) {
                max = array[i];
            }
            if (min > array[i]) {
                min = array[i];
            }
        }
        System.out.println("最大值为：" + max);
        System.out.println("最小值为：" + min);
    }
}
